<template>
	<div class="alert-wrap">
		<div class="layer-shade"></div>
	    <div class="layer-main">
	      <div class="layer-section">
		      <div class="layer-child">
		        <h1>提示</h1>
		        <div>{{ message }}</div>
		        <a href="javascript:void(0)" @click="closeBtn">确定</a>
		      </div>
	    	</div>
	    </div>
	</div>
</template>

<script>
	export default{
		name:'alert',
		props:['message'],
		data(){
			return{

			}
		},
		methods:{
			closeBtn(){
				this.$emit('closeBtn')
			}
		}
	}
</script>

<style>
	.layer-shade{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0,0,0,0.7);
  }
  .layer-main{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: table;
    z-index: 1001;
  }
  .layer-section{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
  }
  .layer-child{
    display: inline-block;
    width: 90%;
    max-width: 640%;
    background-color: #fff;
    border-radius: 5px;
    font-size: 14px;
    padding-bottom: 20px;
  }
  .layer-child h1{
    font-size: 18px;
    padding: 15px 0;
  }
  .layer-child div{
    padding: 30px 0;
  }
  .layer-child a{
    display: block;
    width: 80px;
    height: 40px;
    line-height: 40px;
    margin: 0 auto;
    background-color: #e62129;
    border-radius: 5px;
    color: #fff;
  }
	.change-password{
		background: #fff;
	}
</style>